<template>
	<view class="container productlist">
		<myhead :title="mytitle"></myhead>
		<view class="main">
			<view class="search">
				<icon type="search" class="searchicon"></icon>
				<input class="searchinput" placeholder="请输入内容"/>
			</view>
			<view class="userinfo">
				<view class="buytype all active">
					全部
				</view>
				<view class="buytype sheqian">
					赊欠
				</view>
			</view>
			<view class="list">
				<view class="outitem">
					<view class="letter">
						A
					</view>
					<view class="initem">
						<view class="left">
							<view class="name">
								八爪鱼
							</view>
						</view>
						<view class="right">
							<text>35元/斤</text>
							<image src="../../static/images/blackright.png" class="routericon"></image>
						</view>
					</view>
					<view class="initem">
						<view class="left">
							<view class="name">
								八爪鱼
							</view>
						</view>
						<view class="right">
							<text>35元/斤</text>
							<image src="../../static/images/blackright.png" class="routericon"></image>
						</view>
					</view>
					<view class="initem">
						<view class="left">
							<view class="name">
								八爪鱼
							</view>
						</view>
						<view class="right">
							<text>35元/斤</text>
							<image src="../../static/images/blackright.png" class="routericon"></image>
						</view>
					</view>
				</view>
				<view class="outitem">
					<view class="letter">
						B
					</view>
					<view class="initem">
						<view class="left">
							<view class="name">
								八爪鱼
							</view>
						</view>
						<view class="right">
							<text>35元/斤</text>
							<image src="../../static/images/blackright.png" class="routericon"></image>
						</view>
					</view>
				</view>
				<view class="tip">
					没有更多数据了
				</view>
			</view>
			<view class="bottom">
				<navigator class="btn" url="../addproduct/addproduct">
					添加商品
				</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	import myhead from "../../components/header/header.vue"
	export default {
		data() {
			return {
				mytitle:'商品列表'
			};
		},
		components:{
			myhead
		}
	}
</script>

<style lang="scss" scoped>
.productlist{
	color: #333333;
	display: flex;
	flex-direction: column;
	.main{
		width: 100%;
		box-sizing: border-box;
		flex: 1;
		display: flex;
		flex-direction: column;
		background-color: #EEEEEE;
		.search{
			padding: 0rpx 20rpx;
			.searchicon{
				left: 30rpx;
			}
		}
		.userinfo{
			padding: 20rpx;
			display: flex;
			align-items: flex-start;
			background-color: #FFFFFF;
			margin-bottom: 4rpx;
			padding: 10rpx 20rpx;
			.buytype{
				font-size: 24rpx;
				padding: 10rpx 30rpx;
				background-color: #C0C0C0;
				margin-right: 20rpx;
				border-radius: 20rpx;
				font-weight: bold;
				&.active{
					background-color: #2C405A;
					color: #FFFFFF;
				}
			}
		}
		.list{
			flex: 1;
			.outitem{
				.letter{
					font-size: 32rpx;
					padding: 10rpx 40rpx;
					font-weight: bold;
					box-sizing: border-box;
				}
				.initem{
					display: flex;
					justify-content: space-between;
					padding: 20rpx 40rpx;
					background-color: #FFFFFF;
					align-items: center;
					.left{
						.name{
							font-size: 32rpx;
							font-weight: bold;
						}
					}
					.right{
						font-size: 24rpx;
						color: #DD524D;
						display: flex;
						align-items: center;
						.routericon{
							margin-left: 20rpx;
						}
					}
				}
			}
			.tip{
				font-size: 34rpx;
				color: #666666;
				text-align: center;
				padding: 10rpx;
			}
		}
		.bottom{
			padding: 10rpx;
			background-color: #FFFFFF;
			.btn{
				display: inline-block;
				font-size: 32rpx;
				background-color: #2C405A;
				color: #FFFFFF;
				padding: 15rpx 40rpx;
				border-radius: 32rpx;
				float: right;
			}
		}
	}
}
</style>
